package com.hs.room.model.archive

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 档案柜 一层
 */
@Entity(tableName = "dev_cabinet")
data class DevCabinet(
    @PrimaryKey(autoGenerate = true)
    val localId: Long,//本地数据库主键
    @ColumnInfo
    var id: Long,//服务器返回ID
    @ColumnInfo
    var name: String,//档案柜名称 唯一 eg. 主柜1号档案柜 主柜2号档案柜……
    @ColumnInfo
    var boardId: Int,//锁控板ID
    @ColumnInfo
    var lockNo: Int,//锁编号
    @ColumnInfo
    var lampBoardId: Int,//灯控板ID
    @ColumnInfo
    var lampNo: Int,//灯编号
    @ColumnInfo
    var runningIndicator: Boolean,//灯编号
    @ColumnInfo
    var color: Int,//0red 1green 2blue
    @ColumnInfo
    var status: Int,//
    @ColumnInfo
    var archiveType: Long,//
    @ColumnInfo
    var archiveLevel: Long,
    @ColumnInfo
    var remark: String
) : Cloneable {
    public override fun clone(): DevCabinet {
        return this
    }
}
